package com.tomcov.client.service;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.tomcov.shared.Journey;
import com.tomcov.shared.JourneyPassenger;

public interface JourneyServiceAsync {
	
	//public void getJourney(String From,String To,Date date,AsyncCallback<Journey> ac);
	public void AddJourney(Journey journey,AsyncCallback<Journey> ac);
	public void delete(Journey journey,AsyncCallback<Journey> ac);
	public void getJounreyAsDriver(String Username, AsyncCallback<List<Journey>> ac);
	public void updatejourney(Journey toupdate,Journey updated,AsyncCallback<Journey> ac);
	public void getJourneyasPassenger(String username,AsyncCallback<List<Journey>> ac);
	public void addpassenger(String idnumber, String passenger,AsyncCallback<Journey> asyncCallback);
	public void getJourneyAtTheDameDate(JourneyPassenger j,AsyncCallback<List<Journey>> ac);
	public void setimage(byte[] c ,String mapUrl,Journey j,AsyncCallback<Journey> ac);
	public void getJourneyById(String idnumber,AsyncCallback<Journey> ac);
	public void addpassenger(String idnumber, String passenger, String Waypoints,AsyncCallback<Journey> ac);
	//public void getImage(Journey J,AsyncCallback<String> ac);
	public void getJourneyByIdandAddWaypoints(String journeyidnumber,JourneyPassenger jp, AsyncCallback<Journey> asyncCallback);
	void getJourneyByIdandAddWaypoints(String[] c, String journeyidnumber,JourneyPassenger jp,AsyncCallback<Journey> asyncCallback);
	
}
